
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB REQUIRED glib-2.0 gio-2.0 gtk+-3.0)
pkg_check_modules(GTK REQUIRED gtk+-3.0)
include_directories(${GLIB_INCLUDE_DIRS} )

add_subdirectory(api)

add_executable(kconf2 tools/kconf2-tool.c )
target_link_libraries(kconf2 kyconf2)

add_executable(kconf2-editor tools/kconf2-editor.c )
target_link_libraries(kconf2-editor kyconf2 ${GTK_LIBRARIES})

install(TARGETS kconf2
        DESTINATION /usr/bin)

install(TARGETS kconf2-editor
        DESTINATION /usr/bin)